package com.woniuxy.table.client;

import com.woniuxy.table.client.param.AddTableTypeParam;
import com.woniuxy.table.client.param.ModifyTableTypeParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "tableTypeMannageClient",name="table")
public interface TableTypeMannageClient {

    @PostMapping("/addTableType")
    public Result addTableType(@RequestBody AddTableTypeParam addTableTypeParam);

    @PutMapping("/modifyTableType")
    public Result modifyTableType(@RequestBody ModifyTableTypeParam modifyTableTypeParam);

    @DeleteMapping("/deleteTableType")
    public Result deleteTableType(@RequestParam("storeId") Integer storeId,@RequestParam("tableTypeId")Integer tableTypeId);
}
